package com.chixing.day18_thread.word;

public class C implements Runnable{
    private PublicDemo publicDemo;

    public C(PublicDemo publicDemo) {
        this.publicDemo = publicDemo;
    }

    @Override
    public void run() {
        for (int i=0;i<20;i++){
            publicDemo.getC();
        }

    }
}
